<?php
require_once 'connect.php';

$filter = false;
if(isset($_POST)) {
	$filter = $_POST['gameName'];
	//echo $filter;
} else  {
echo "fail";
}
// connect to mysql database
connect();
// get game list
$gameRatings = getGameRatings($filter);
// disconnect to mysql database
disconnect();

foreach ($gameRatings as $rating) {
	echo $rating. ',';
}
?>				